var mongoose = require("mongoose");

var buildingSchema = new mongoose.Schema({
    name: { type: String, default: "" },
    price: { type: Number, default: 0 },
    power: { type: Number, default: 0},
    whitering: { type: Number, default: 0 },
    capacityMax: { type: Number, default: 0},
    parcelle_id: {type: String},
    i: {type: Number},
    j: {type: Number}
});

var building = mongoose.model('Building', buildingSchema);

module.exports = {
    Building: building
}
